<template>
  <div class="footer">
<!--    <div class="links">
      <a href="http://www.jeecg.com" target="_blank">JEECG 首页</a>
      <a href="https://github.com/zhangdaiscott/jeecg-boot" target="_blank">
        <a-icon type="github"/>
      </a>
      <a href="https://ant.design/">Ant Design</a>
      <a href="https://vuecomponent.github.io/ant-design-vue/docs/vue/introduce-cn/">Vue Antd</a>
    </div>-->
    <div class="copyright">
      Copyright
      <a-icon type="copyright"/>
      2024 <span>{{this.name}} 出品</span>
    </div>
  </div>
</template>

<script>
  import { httpAction, getAction } from '@/api/manage'
  export default {
    name: "LayoutFooter",
    data () {
      return {
        url :'/yw/api/common/config',
        name:'',
      }
    },
    created() {
      this.getName();
    },
    methods: {
      getName() {
        let that = this;
        httpAction(this.url + "?codes=name", null, 'post').then((res) => {
          if (res.success) {
            //console.log(res)
            that.name = res.result.name.value;
          } else {
            that.$message.warning(res.message);
          }
        })
      },
    },
  }


</script>

<style lang="less" scoped>
  .footer {
    padding: 0 16px;
    margin: 48px 0 24px;
    text-align: center;

    .links {
      margin-bottom: 8px;

      a {
        color: rgba(0, 0, 0, .45);

        &:hover {
          color: rgba(0, 0, 0, .65);
        }

        &:not(:last-child) {
          margin-right: 40px;
        }
      }
    }
    .copyright {
      color: rgba(0, 0, 0, .45);
      font-size: 14px;
    }
  }
</style>